Skip to content

fix(mcpx): make supervised stdio opt-in again - #11343

Merged
dezren39 merged 1 commit into
mainfrom
fix/mcpx-supervised-opt-in
Nov 17, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/mcpx-supervised-opt-in

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Before: since #9963 (supervised stdio by default) merged on Nov 16, about 20 mcpx e2e tests fail on main. The supervisor socket is keyed by server name only (SupervisorSocketPath(stateDir, name)), so a server's second scoped instance (another session, repo or worktree scope) dials the first instance's supervisor and gets supervisor refused attach: already attached. Supervisors also outlive mcpx stop, so the no-orphan and inline-mode tests find leftover sup-*.sock sockets and children.

After: stdio servers run direct-spawn unless the config says "mcpx": {"supervised": true}. With the default off, 20 of the 24 locally failing e2e tests pass. The other four are fixed in #11342.

How: stop materializing supervised: true at file load. Everything else from #9963 (restart through the supervisor, adopt-or-reap scan, alias inheritance) is unchanged and still applies to servers that opt in. The two default tests now assert opt-in behavior.

To bring the default back, the socket needs to be keyed per instance (pool identity plus scope key), and mcpx stop needs to reap supervisors.

Testing: go test ./internal/config ./internal/pool ./internal/mcpclient ./internal/daemon passes; the previously failing e2e tests pass locally.


Generated by Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

#9963 made supervised stdio the default, and about 20 mcpx e2e tests
have failed on main since. The supervisor socket is keyed by server
name only (SupervisorSocketPath), so a server's second scoped instance
(another session, repo or worktree scope) attached to the first
instance's supervisor and was refused ("supervisor refused attach:
already attached"), and supervisors outlived `mcpx stop`, leaving
sockets and child processes behind.

Stop materializing the default at file load: "supervised": true still
opts in and everything #9963 added for it (restart through the
supervisor, adopt-or-reap scan) is unchanged. The default can return
once sockets are keyed per instance and stop reaps supervisors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 49 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5dd9e35b-7c3a-4ade-8cd0-d25dd42e47d7
Commits

Reviewing files that changed from the base of the PR and between 08e392a and 6c3c491.

Files selected for processing: 3

  • pkgs/mcpx/internal/config/config.go
  • pkgs/mcpx/internal/config/supervised_default_test.go
  • pkgs/mcpx/internal/pool/supervised_default_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 marked this pull request as ready for review November 17, 2026 20:54
@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 20:54
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T20:54:34.189784Z
We couldn’t complete this review. Comment @codex review to try again.
6c3c491 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit cf7872d into main Nov 17, 2026
1 check passed
@dezren39
dezren39 deleted the fix/mcpx-supervised-opt-in branch November 17, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants